//
//  OosLocatedEntry.m
//  Oos4ios
//
//  Created by Pablo Gonzalez on 2/23/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import "OosLocatedEntry.h"


@implementation OosLocatedEntry

- (void) addExtensionDeclarations 
{
	[super addExtensionDeclarations];
	
	Class entryClass = [self class];
	
	[self addExtensionDeclarationForParentClass:entryClass childClasses: 
	 // Oos extensions
	 [OosSubDependentLocality class], [OosDependentLocality class], 
	 [OosLocality class], [OosAdministrativeArea class], 
	 [OosSubAdministrativeArea class], [OosCountry class], 
	 [GDataGeoRSSWhere class], nil];
}

#pragma mark <oos:useraddress>

- (OosUserAddress *) address						
{ 
	return [self objectForExtensionClass:[OosUserAddress class]]; 
}
- (void) setAddress: (OosUserAddress *) address 
{ 
	[self setObject:address forExtensionClass:[OosUserAddress class]];
}

#pragma mark <oos:subdependentlocality>

- (OosSubDependentLocality *) subDependentLocality	
{ 
	return [self objectForExtensionClass:[OosSubDependentLocality class]]; 
}
- (void) setSubDependentLocality: (OosSubDependentLocality *) subDependentLocality
{ 
	[self setObject:subDependentLocality forExtensionClass:[OosSubDependentLocality class]]; 
}

#pragma mark <oos:dependentlocality>

- (OosDependentLocality *) dependentLocality		
{ 
	return [self objectForExtensionClass:[OosDependentLocality class]]; 
}
- (void) setDependentLocality: (OosDependentLocality *) dependentLocality		
{ 
	[self setObject:dependentLocality forExtensionClass:[OosDependentLocality class]]; 
}

#pragma mark <oos:url>

- (OosLocality *) locality							
{ 
	return [self objectForExtensionClass:[OosLocality class]]; 
}
- (void) setLocality: (OosLocality *) locality		
{ 
	[self setObject:locality forExtensionClass:[OosLocality class]]; 
}

#pragma mark <oos:subadministrativearea>

- (OosSubAdministrativeArea *) subAdministrativeArea
{ 
	return [self objectForExtensionClass:[OosSubAdministrativeArea class]]; 
}
- (void) setSubAdministrativeArea: (OosSubAdministrativeArea *) subAdministrativeArea
{ 
	[self setObject:subAdministrativeArea 
		forExtensionClass:[OosSubAdministrativeArea class]]; 
}

#pragma mark <oos:administrativearea>

- (OosAdministrativeArea *) administrativeArea		
{ 
	return [self objectForExtensionClass:[OosAdministrativeArea class]]; 
}
- (void) setAdministrativeArea: (OosAdministrativeArea *) administrativeArea	
{ 
	[self setObject:administrativeArea forExtensionClass:[OosAdministrativeArea class]]; 
}

#pragma mark <oos:country>

- (OosCountry *) country							
{ 
	return [self objectForExtensionClass:[OosCountry class]]; 
}
- (void) setCountry: (OosCountry *) country			
{ 
	[self setObject:country forExtensionClass:[OosCountry class]]; 
}

#pragma mark <georss:where>

- (GDataGeoRSSWhere *) where						
{ 
	return [self objectForExtensionClass:[GDataGeoRSSWhere class]]; 
}
- (void) setWhere: (GDataGeoRSSWhere *) where		
{ 
	[self setObject:where forExtensionClass:[GDataGeoRSSWhere class]]; 
}

@end
